home *** CD-ROM | disk | FTP | other *** search
- Path: qualcomm.com!usenet
- From: nabbasi@qualcomm.com (Nasser Abbasi)
- Newsgroups: comp.lang.c++
- Subject: generic paramter to template question
- Date: 3 Feb 1996 03:57:06 GMT
- Organization: QUALCOMM
- Message-ID: <4eumei$j82@qualcomm.com>
- NNTP-Posting-Host: nabbasi.qualcomm.com
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- hi,
-
- How can one give a template a parameter that is a value of generic type?
-
- A template can take as paramter as a type, and also it can take a
- parameter that is a variable of known type as in:
-
- template<class T,int item> class foo{..}
-
- but in the above the type of "item" is not generic. is there a way
- to pass "item" above but let the user have its type as generic also (as
- with T) ?
-
- thanks
- Nasser
-
-